<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>地图查看器</title>

    <link rel="stylesheet" href="http://127.0.0.1/arcgis_js_api/library/4.7/esri/css/main.css">
    <link rel="stylesheet" href="css/mainApp.css">
    <link rel="stylesheet" href="../dist/css/dextra.css">


    <script src="../dist/config.js"></script>

    <script src="http://127.0.0.1/arcgis_js_api/library/4.7/init.js"></script>
    <script>


        // Load the Map and MapView modules
        require(["esri/Map",

            "dextra/layers/TdtVectorLayer",
            "dextra/modules/viewers/MapViewer",

            "dojo/domReady!"], function(Map, TdtVectorLayer,MapViewer) {

            var layer=new TdtVectorLayer();

            var myMap = new Map({
//                basemap: "streets"
                layers:[layer]
            });




            var mapViewer = new MapViewer({
                map: myMap,
                viewNode: "viewDiv",
            });




        });
    </script>


</head>
<body>

<div id="viewDiv"></div>
</body>
</html>